package com.microservice.salmon.db.entities;

import javax.persistence.*;

@Table(name = "t_category_shops")
public class CategoryShop {
    /**
     * 自增ID
     */
    @Id
    private Integer id;

    /**
     * 店铺ID
     */
    @Column(name = "shop_id")
    private Integer shopId;

    /**
     * 分类ID
     */
    @Column(name = "cat_id")
    private Integer catId;

    /**
     * 获取自增ID
     *
     * @return id - 自增ID
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置自增ID
     *
     * @param id 自增ID
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取店铺ID
     *
     * @return shop_id - 店铺ID
     */
    public Integer getShopId() {
        return shopId;
    }

    /**
     * 设置店铺ID
     *
     * @param shopId 店铺ID
     */
    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }

    /**
     * 获取分类ID
     *
     * @return cat_id - 分类ID
     */
    public Integer getCatId() {
        return catId;
    }

    /**
     * 设置分类ID
     *
     * @param catId 分类ID
     */
    public void setCatId(Integer catId) {
        this.catId = catId;
    }
}